/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package centralehotel.metier.backoffice;

import centralehotel.dao.interfaces.TypeChambreDAOLocal;
import centralehotel.exception.ObjetNonTrouveException;
import centralehotel.modele.TypeChambre;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author noel
 */
@Stateless
public class TypeChambreMetierBean implements ChambreMetierLocal {
    @EJB
    private TypeChambreDAOLocal typeChambreDAO;
    
    public TypeChambre getTypeChambreByName(String name) throws ObjetNonTrouveException
    {
        return typeChambreDAO.findByName(name);
    }
 
}
